﻿namespace Dcms.IDAL
{
    using Dcms.Model;
    using System;
    using System.Collections.Generic;
    using System.Data;

    public interface IDcms_AdminDAL
    {
        Dcms_AdminModel AddModel(Dcms_AdminModel model);
        Dcms_AdminModel CheckAdminLogin(string UserName, string PassWord);
        void DeleteAdminByRoleID(int RoleID);
        void DeleteModelByID(int ID);
        string GetDataCount(string SqlStr);
        IList<Dcms_AdminModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize);
        Dcms_AdminModel GetModelByID(int ID);
        Dcms_AdminModel GetModelByName(string strAdmin_Name);
        DataSet GetModelList();
        Dcms_AdminModel Update(Dcms_AdminModel model);
        int UpdatePwd(int AdminId, string PassWord);
        int UpdateRole(int AdminId, int RoleId);
    }
}

